package person.aoao.library.service;

import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import person.aoao.library.entity.WillList;
import person.aoao.library.result.ResponseData;
import person.aoao.library.vo.ListData;
import person.aoao.library.vo.TimePlus;

import java.util.ArrayList;
import java.util.List;

/**
 * (WillList)表服务接口
 *
 * @author makejava
 * @since 2023-05-05 10:15:40
 */
public interface WillListService {

    /**
     * 通过ID查询单条数据
     *
     * @param willid 主键
     * @return 实例对象
     */
    WillList queryById(Integer willid);

    /**
     * 分页查询
     *
     * @param willList    筛选条件
     * @param pageRequest 分页对象
     * @return 查询结果
     */
    Page<WillList> queryByPage(WillList willList, PageRequest pageRequest);

    /**
     * 新增数据
     *
     * @param willList 实例对象
     * @return 实例对象
     */
    WillList insert(WillList willList);

    /**
     * 修改数据
     *
     * @param willList 实例对象
     * @return 实例对象
     */
    WillList update(WillList willList);

    /**
     * 通过主键删除数据
     *
     * @param willid 主键
     * @return 是否成功
     */
    boolean deleteById(Integer willid);

    List<String> isWill(@Param("seatId") String seatId, @Param("date") String date);

    List<WillList> getOreders(String uid, Integer page, Integer limit);

    ListData checkInfo(String key);

    ResponseData getWillListByUid(String uid, Integer num, Integer page);

    ResponseData getWillList(Integer num, Integer page);

    ResponseData searchWillList(String str, Integer state,Integer num, Integer page );

    ResponseData getWillListByUidState(String uid, Integer state, Integer num, Integer page);

    ResponseData getTimePlus(TimePlus queey);

    ResponseData weekData(ArrayList<String> weeks);
}
